﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="CheckIndex.aspx.cs" Inherits="Enterprise.UI.Web.Modules.BusiTravel.CheckIndex" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" type="text/css" href="../../Styles/css/gridview.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPH" runat="server">
    <div class="vDaohangtiaoHolder module">
        <div class="vDaohangtiao">
            <ul>
                <li class="first">
                    <a href="/index.aspx" title="首页">首页</a>
                </li>
                <li class="last">差旅管理
                </li>
            </ul>
        </div>
    </div>
    <Ent:HeadMenuWeb ID="HeadMenu1" runat="server">
        <Ent:HeadMenuButtonItem ButtonIcon="back.gif" ButtonName="返回" ButtonPopedom="List"
            ButtonUrl="../../TodoIndex.aspx" ButtonUrlType="Href" />
    </Ent:HeadMenuWeb>
    <div id="p" class="easyui-panel" style="padding: 1px;" fit="true" border="false"
        collapsible="false" minimizable="false" maximizable="false" closable="false">
        <div class="easyui-tabs" fit="true" plain="true">
            <div title="待我审批" style="padding: 10px;">
                <asp:GridView ID="GridView1" runat="server" DataKeyNames="BID" CssClass="GridViewStyle"
                    AutoGenerateColumns="False" Width="100%">
                    <Columns>
                        <asp:TemplateField HeaderText="序号">
                            <ItemTemplate>
                                <%#Container.DataItemIndex+1%>
                            </ItemTemplate>
                            <ItemStyle Wrap="False" HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="申请人">
                            <ItemTemplate>
                                <%#Enterprise.Service.User.UserService.GetUserName((int)Eval("USERID"))%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="申请事由">
                            <ItemTemplate>
                                <%#Eval("BSUBJECT") %>
                            </ItemTemplate>
                            <ItemStyle Wrap="False" HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="BDESTINATION" HeaderText="目的地">
                            <ItemStyle HorizontalAlign="Center" Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="BLINE" HeaderText="出差路线"></asp:BoundField>
                        <asp:BoundField DataField="BTICKETTYPE" HeaderText="机票类别">
                            <ItemStyle HorizontalAlign="Center" Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="BSTARTIME" HeaderText="起始时间" DataFormatString="{0:yyyy-MM-dd}" />
                        <asp:BoundField DataField="BENDTIME" HeaderText="终止时间" DataFormatString="{0:yyyy-MM-dd}" />
                        <asp:BoundField HeaderText="申请时间" DataField="BCREATETIME" />
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <a href="Check.aspx?Id=<%#Eval("BID") %>">审批</a>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        没有需要申请的出差申请单，请点击 <a href="../../Index.aspx">返回</a>
                    </EmptyDataTemplate>
                    <HeaderStyle CssClass="GridViewHeaderStyle" />
                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                    <RowStyle CssClass="GridViewRowStyle" />
                </asp:GridView>
            </div>
        </div>
    </div>
</asp:Content>
